package com.znzz.course.activity;

import android.os.Bundle;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.znzz.course.R;

/**
 * 单双周下拉框选
 * @Author by DHF
 * @Date 2022/04/2022/4/13 22:06
 * @Version 1.0
 */
public class SpinnerActivity extends AppCompatActivity {
    private Spinner semester,time;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_add_course);
//        semester = findViewById(R.id.spinner_semester);
//        time = findViewById(R.id.spinner_time);
//        String[] semester_arr = {"大一","大二","大三","大四"};
//        String[] time_arr = {"上期","下期"};
//
//        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.week_list, semester_arr);
//        semester.setAdapter(adapter);
//        semester.setOnItemClickListener((AdapterView.OnItemClickListener)this);
    }
}
